package com.dstz.sys.core.manager.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import com.dstz.base.manager.impl.BaseManager;
import com.dstz.sys.api.model.SysConnectRecordDTO;
import com.dstz.sys.core.dao.SysConnectRecordDao;
import com.dstz.sys.core.model.SysConnectRecord;
import com.dstz.sys.core.manager.SysConnectRecordManager;
/**
 * 公共业务关联记录 Manager处理实现类
 * @author Jeff
 * @email for_office@qq.com
 * @time 2019-08-10 21:54:11
 */
@Service("sysConnectRecordManager")
public class SysConnectRecordManagerImpl extends BaseManager<String, SysConnectRecord> implements SysConnectRecordManager{
	@Resource
	SysConnectRecordDao sysConnectRecordDao;

	@Override
	public List<SysConnectRecord> getByTargetId(String id, String type) {
		return sysConnectRecordDao.getByTargetId(id,type);
	}

	@Override
	public void bulkCreate(List<SysConnectRecord> list) {
		sysConnectRecordDao.bulkCreate(list);
	}

	@Override
	public void removeBySourceId(String sourceId, String type) {
		sysConnectRecordDao.removeBySourceId(sourceId,type);
	}

}
